//
//  Person.m
//  链式编程
//
//  Created by 周成龙 on 17/2/14.
//  Copyright © 2017年 ZCL. All rights reserved.
//

#import "Person.h"

@implementation Person

- (Person *(^)(double))run {
    return ^(double km) {
        NSLog(@"跑 %.0f km", km);
        return self;
    };
}
- (Person *(^)(NSString *))eat {
    return ^(NSString *food) {
        NSLog(@"吃 %@", food);
        return self;
    };
}

@end
